
import React from 'react';
import { Tooltip } from 'antd';

import { QuestionCircleTwoTone } from '@ant-design/icons';

export interface DocHelperProps {
    page: string,
    title?: string
}
const docUrl = 'https://www.yuque.com/books/share/ac4c0470-4b8c-406e-9709-0045ba7703ce/';
const DocHelper: React.FC<DocHelperProps> = (props: DocHelperProps) => {

    return (
        <Tooltip title={props.title ? props.title : '使用帮助'}><a href={docUrl + props.page} target="_blank"><QuestionCircleTwoTone /></a></Tooltip>
    )
}
export default DocHelper;